package tps12.axwax.server;

import java.io.BufferedReader;

import javax.servlet.http.HttpServletResponse;

public class HttpHandler {
	
	public static class Result {
		public Result(int status) { this(status, TEXT, ""); }
		public Result(int status, String text) { this(status, TEXT, text); }
		public Result(int status, String type, String text) {
			this.status = status;
			this.type = type;
			this.text = text;
		}
		public final int status;
		public final String type;
		public final String text;
		
		public static final String JSON = "application/json";
		public static final String TEXT = "text/plain";
	}

	public Result get(String pathInfo) {
		return new Result(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
	}

	public Result delete(String pathInfo) {
		return new Result(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
	}

	public Result put(String pathInfo, BufferedReader content) {
		return new Result(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
	}
	
	public Result post(String pathInfo, BufferedReader content) {
		return new Result(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
	}
}